package com.hllxd.hism.framework.httprpc.service;


import com.alibaba.fastjson.JSONObject;
import lombok.Data;

/**
 * author: xiyong.lxy
 * date: 2020-10-24 20:16
 */
@Data
public class PRESULT_OBJECT {

    public Object data;

    public <T> T driverObject(Class<T> dataType) {
        return ((JSONObject)data).toJavaObject(dataType);
    }

    @Override
    public String toString() {
        return data.toString();
    }
}
